package com.cg.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.cg.dao.BusinessFileDao;
import com.cg.entity.BusinessFile;
import com.cg.service.BusinessFileService;

@Service("businessFileService")
public class BusinessFileServiceImpl implements BusinessFileService {
	@Autowired
	BusinessFileDao businessFileDao;
	
	@Override
	public BusinessFile queryObjectById(Integer id) {
		return businessFileDao.queryObject(id);
	}

	@Override
	public List<BusinessFile> queryList(Map<String, Object> map) {
		return businessFileDao.queryList(map);
	}

	@Override
	public int queryTotal(Map<String, Object> map) {
		return businessFileDao.queryTotal();
	}

	@Override
	public void save(BusinessFile menu) {
		businessFileDao.save(menu);
	}

	@Override
	public void update(BusinessFile menu) {
		businessFileDao.update(menu);
	}

	@Override
	public void deleteBatch(Integer[] menuIds) {
		businessFileDao.deleteBatch(menuIds);
	}

}
